package com.xwq.smartgelleryhub.model.dto.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * 用户Excel导入导出DTO
 */
@Data
public class ExcelUserDTO {
    
    @ExcelIgnore
    private Long id;
    
    @ExcelProperty("用户账号")
    @ColumnWidth(20)
    private String userAccount;
    
    @ExcelProperty("用户昵称")
    @ColumnWidth(20)
    private String userName;
    
    @ExcelIgnore
    private String userPassword;
    
    @ExcelProperty("用户头像")
    @ColumnWidth(50)
    private String userAvatar;
    
    @ExcelProperty("用户角色")
    @ColumnWidth(15)
    private String userRole;
    
    @ExcelProperty("用户简介")
    @ColumnWidth(40)
    private String userProfile;
    
    @ExcelProperty("电子邮件")
    @ColumnWidth(25)
    private String email;
    
    @ExcelProperty("手机号")
    @ColumnWidth(15)
    private String phone;
    
    @ExcelProperty("性别")
    @ColumnWidth(10)
    private Integer gender;
    
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date createTime;
    
    @ExcelProperty("更新时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date updateTime;
} 